/* pages/preview/preview.wxss */
page {
  background: #F5F6F8;
}

.weui-tabs-swiper {
  height: 1050rpx;
}

.tab-content {
  width: 100%;
  background: #F5F6F8;
  height: 100%;

  image {
    width: 600rpx;
    margin: 40rpx 75rpx;
  }

  .images-wrapper {
    background: #FFFFFF;
    border: 1px solid #E4E6E7;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-75%);
    width: fit-content;
    padding: 30rpx;
    display: grid;
    grid-template-columns: 120rpx 120rpx 120rpx 120rpx;
    grid-row-gap: 30rpx;
    grid-column-gap: 20rpx;

    image {
      display: -moz-inline-grid;
      display: -ms-inline-grid;
      margin: 0;
      width: 118rpx;
      border: 1px dotted #E4E6E7;
    }
  }
}

.scroll-view-H {
  position: fixed;
  bottom: 140rpx;
  bottom: calc(constant(safe-area-inset-bottom) + 140rpx);
  /* 兼容 iOS < 11.2 */
  bottom: calc(env(safe-area-inset-bottom) + 140rpx);
  white-space: nowrap;
  background: white;
  padding: 35rpx 0;
  text-align: center;
}

.dialog-beauty-wrapper {
  width: 100%;
  position: fixed;
  bottom: 140rpx;
  bottom: calc(constant(safe-area-inset-bottom) + 140rpx);
  /* 兼容 iOS < 11.2 */
  bottom: calc(env(safe-area-inset-bottom) + 140rpx);
  background: white;
  padding: 35rpx 0;
  text-align: center;
  display: flex;
  align-items: center;

  text {
    margin-left: 40rpx;
    margin-right: 20rpx;
    font-size: 26rpx;
    font-weight: 400;
    color: #242424;
    line-height: 26rpx;
  }

  slider {
    flex: 1
  }
}

.dialog-cloth-wrapper {
  width: 100%;
  position: fixed;
  bottom: 140rpx;
  bottom: calc(constant(safe-area-inset-bottom) + 140rpx);
  /* 兼容 iOS < 11.2 */
  bottom: calc(env(safe-area-inset-bottom) + 140rpx);
  background: white;

  .top-title {
    display: flex;
    padding: 20rpx 33rpx;
    justify-content: space-between;
    align-items: center;

    image {
      width: 36rpx;
      height: 40rpx;
    }

    .title-content {
      display: flex;
      align-items: center;

      text {
        margin: 0 42rpx;
        font-size: 26rpx;
        font-weight: 600;
        color: #262626;
        line-height: 26rpx;
      }

      .divider {
        width: 2rpx;
        height: 14rpx;
        background: #E4E6E7;
      }
    }
  }

  .cloth-wrapper {
    white-space: nowrap;
    padding: 30rpx 0;

    .cloth-none {
      width: 120rpx;
      height: 110rpx;
    }

    .cloth-item-wrapper {
      display: inline-block;
    }

    .cloth-item {
      margin: 0 10rpx;
      display: flex;
      flex-direction: column;
      height: 140rpx;
      background: #F5F6F8;
      border-radius: 10rpx;
      justify-content: flex-end;
      width: 120rpx;


      .cloth-item-title {
        width: 120rpx;
        padding: 3rpx 0;
        background: #555DF5;
        border-radius: 0px 0px 10rpx 10rpx;
        text-align: center;

        text {
          font-size: 24rpx;
          font-weight: 400;
          color: #FFFFFF;
          line-height: 24rpx;
        }
      }
    }

    image {
      width: 120rpx;
      height: 60rpx;
    }
  }
}

.color-block {
  width: 90rpx;
  height: 90rpx;
  border-radius: 20rpx;
  display: inline-block;
  margin: 0 20rpx;
  border: 1px solid #E4E6E7;
  text-align: center;

  .check-image {
    width: 22rpx;
    height: 16rpx;
    display: inline-block;
    padding-top: 37rpx;
  }
}

.bottom-wrp {
  position: fixed;
  bottom: 0;
  width: 750rpx;
  height: 104rpx;
  background: white;
  border-top: #E4E6E7 1px solid;

  padding-top: 20rpx;
  padding-bottom: calc(constant(safe-area-inset-bottom) + 20rpx);
  /* 兼容 iOS < 11.2 */
  padding-bottom: calc(env(safe-area-inset-bottom) + 20rpx);

  display: flex;
  align-items: center;

  button {
    width: 300rpx;
    height: 100rpx;
    background: #555DF5;
    border-radius: 20rpx;
    font-size: 30rpx;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 100rpx;
    padding: 0;
    margin: 0;
    margin-left: 64rpx;
    margin-right: 40rpx;
  }
}

.item-wrp {
  margin-left: 40rpx;
  display: flex;
  flex-direction: row;
  flex: 1;
  justify-content: space-between;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;

  image {
    width: 36rpx;
    height: 40rpx;
  }

  text {
    margin-top: 15rpx;
    font-size: 22rpx;
    font-weight: 400;
    color: #8E8E8E;
    line-height: 22rpx;
  }
}